package com.sims.action.bbs;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.sims.bean.Theme;
import com.sims.service.BBSService;
import com.sims.util.ActionEnhanced;
import com.sims.util.Constant;

public class FindMyThemeAction extends ActionEnhanced {
	private List list = new ArrayList();
	@Autowired
	private BBSService bbsService;
	
	
	public List getList() {
		return list;
	}


	public void setList(List list) {
		this.list = list;
	}

	@Override
	public String execute() {
		
		result = bbsService.findMyTheme(list);
		if (result.containsKey(Constant.SUCCESS)) {
			System.out.println("success");
			return SUCCESS;
		}
		return ERROR;
		
	}
}
